home *** CD-ROM | disk | FTP | other *** search
Wrap
XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) NNNNAAAAMMMMEEEE XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx - The SelectionBox widget class SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS #include <Xm/SelectioB.h> VVVVEEEERRRRSSSSIIIIOOOONNNN This page documents Motif 2.1. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN SelectionBox is a general dialog widget that allows the user to select one item from a list. By default, a SelectionBox includes the following: +o A scrolling list of alternatives +o An editable text field for the selected alternative +o Labels for the list and text field +o Three or four buttons The default button labels are _O_K, CCCCaaaannnncccceeeellll, and HHHHeeeellllpppp. By default an AAAAppppppppllllyyyy button is also created; if the parent of the SelectionBox is a DialogShell, it is managed; otherwise it is unmanaged. Additional children may be added to the SelectionBox after creation. The first child is used as a work area. The value of XXXXmmmmNNNNcccchhhhiiiillllddddPPPPllllaaaacccceeeemmmmeeeennnntttt determines if the work area is placed above or below the Text area, or above or below the List area. Additional children are laid out in the following manner: Menubar The first menu bar child is placed at the top of the window. The _X_m_Q_T_m_e_n_u_S_y_s_t_e_m trait is used to check that it is the first MenuBar child. Buttons All XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnnwidgets or gadgets, and their subclasses are placed after the _O_K button in the order of their creation (this order is checked using the _X_m_Q_T_a_c_t_i_v_a_t_a_b_l_e trait). The layout direction of the buttons depends on the XXXXmmmmNNNNllllaaaayyyyoooouuuuttttDDDDiiiirrrreeeeccccttttiiiioooonnnn resource. The layout of additional children that are not in the above categories is undefined. The user can select an item in two ways: by scrolling through the list and selecting the desired item or by entering the item name directly into the text edit area. Selecting an item from the list causes that item name to appear in the selection text edit area. Page 1 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) The user may select a new item as many times as desired. The item is not actually selected until the user presses the _O_K PushButton. The default value for the XXXXmmmmBBBBuuuulllllllleeeettttiiiinnnnBBBBooooaaaarrrrdddd resource XXXXmmmmNNNNccccaaaannnncccceeeellllBBBBuuuuttttttttoooonnnn is the Cancel button, unless XXXXmmmmNNNNddddiiiiaaaallllooooggggTTTTyyyyppppeeee is XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____CCCCOOOOMMMMMMMMAAAANNNNDDDD, when the default is NULL. The default value for the XXXXmmmmBBBBuuuulllllllleeeettttiiiinnnnBBBBooooaaaarrrrddddXXXXmmmmNNNNddddeeeeffffaaaauuuullllttttBBBBuuuuttttttttoooonnnn resource is the OK button, unless XXXXmmmmNNNNddddiiiiaaaallllooooggggTTTTyyyyppppeeee is XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____CCCCOOOOMMMMMMMMAAAANNNNDDDD, when the default is NULL. For SelectionBox and its subclasses, the default value for XXXXmmmmNNNNiiiinnnniiiittttiiiiaaaallllFFFFooooccccuuuussss is the text edit area. The user can specify resources in a resource file for the automatically created widgets and gadgets of SelectionBox. The following list identifies the names of these widgets (or gadgets) and the associated SelectionBox areas: List Items Label IIIItttteeeemmmmssss List Items IIIItttteeeemmmmssssLLLLiiiisssstttt Selection Label SSSSeeeelllleeeeccccttttiiiioooonnnn Selection Text TTTTeeeexxxxtttt or TTTTeeeexxxxttttFFFFiiiieeeelllldddd Selection Separator SSSSeeeeppppaaaarrrraaaattttoooorrrr SelectionBox uses the _X_m_Q_T_a_c_c_e_s_s_T_e_x_t_u_a_l, _X_m_Q_T_a_c_t_i_v_a_t_a_b_l_e, and _X_m_Q_T_m_e_n_u_S_y_s_t_e_m traits. DDDDeeeesssscccceeeennnnddddaaaannnnttttssss SelectionBox automatically creates the descendants shown in the following table. An application can use XXXXttttNNNNaaaammmmeeeeTTTTooooWWWWiiiiddddggggeeeetttt to gain access to the named descendant. In addition, a user or an application can use the named descendant when specifying resource values. NNNNaaaammmmeeeedddd DDDDeeeesssscccceeeennnnddddaaaannnntttt CCCCllllaaaassssssss IIIIddddeeeennnnttttiiiittttyyyy ____________________________________________________________________________________________________________________________________________________ AAAAppppppppllllyyyy XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnnGGGGaaaaddddggggeeeetttt Apply button CCCCaaaannnncccceeeellll XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnnGGGGaaaaddddggggeeeetttt Cancel button HHHHeeeellllpppp XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnnGGGGaaaaddddggggeeeetttt Help button IIIItttteeeemmmmssss XXXXmmmmLLLLaaaabbbbeeeellllGGGGaaaaddddggggeeeetttt title above the list of items IIIItttteeeemmmmssssLLLLiiiisssstttt XXXXmmmmLLLLiiiisssstttt list of items from which the user Page 2 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) will select IIIItttteeeemmmmssssLLLLiiiissssttttSSSSWWWW XXXXmmmmSSSSccccrrrroooolllllllleeeeddddWWWWiiiinnnnddddoooowwww ScrolledWindow parent of IIIItttteeeemmmmssssLLLLiiiisssstttt _O_K XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnnGGGGaaaaddddggggeeeetttt OK button SSSSeeeelllleeeeccccttttiiiioooonnnn XXXXmmmmLLLLaaaabbbbeeeellllGGGGaaaaddddggggeeeetttt title above the selection box SSSSeeeeppppaaaarrrraaaattttoooorrrr XXXXmmmmSSSSeeeeppppaaaarrrraaaattttoooorrrrGGGGaaaaddddggggeeeetttt dividing line between selection box and buttons TTTTeeeexxxxtttt XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeelllldddd selection box containing text of selected item CCCCllllaaaasssssssseeeessss SelectionBox inherits behavior, resources, and traits from CCCCoooorrrreeee, CCCCoooommmmppppoooossssiiiitttteeee, CCCCoooonnnnssssttttrrrraaaaiiiinnnntttt, XXXXmmmmMMMMaaaannnnaaaaggggeeeerrrr, and XXXXmmmmBBBBuuuulllllllleeeettttiiiinnnnBBBBooooaaaarrrrdddd. The class pointer is _x_m_S_e_l_e_c_t_i_o_n_B_o_x_W_i_d_g_e_t_C_l_a_s_s. The class name is XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx. NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss The following table defines a set of widget resources used by the programmer to specify data. The programmer can also set the resource values for the inherited classes to set attributes for this widget. To reference a resource by name or by class in a ....XXXXddddeeeeffffaaaauuuullllttttssss file, remove the XXXXmmmmNNNN or XXXXmmmmCCCC prefix and use the remaining letters. To specify one of the defined values for a resource in a ....XXXXddddeeeeffffaaaauuuullllttttssss file, remove the XXXXmmmm prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words). The codes in the access column indicate if the given resource can be set at creation time (C), set by using XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss (S), retrieved by using XXXXttttGGGGeeeettttVVVVaaaalllluuuueeeessss (G), or is not applicable (N/A). XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss XmNapplyCallback XmCCallback XtCallbackList NULL C XmNapplyLabelString XmCApplyLabelString XmString dynamic CSG XmNcancelCallback XmCCallback XtCallbackList NULL C XmNcancelLabelString XmCCancelLabelString XmString dynamic CSG XmNchildPlacement XmCChildPlacement unsigned char XmPLACE_ABOVE_SELECTION CSG XmNdialogType XmCDialogType unsigned char dynamic CG XmNhelpLabelString XmCHelpLabelString XmString dynamic CSG XmNlistItemCount XmCItemCount int 0 CSG XmNlistItems XmCItems XmStringTable NULL CSG XmNlistLabelString XmCListLabelString XmString dynamic CSG XmNlistVisibleItemCount XmCVisibleItemCount int dynamic CSG XmNminimizeButtons XmCMinimizeButtons Boolean False CSG XmNmustMatch XmCMustMatch Boolean False CSG XmNnoMatchCallback XmCCallback XtCallbackList NULL C XmNokCallback XmCCallback XtCallbackList NULL C XmNokLabelString XmCOkLabelString XmString dynamic CSG Page 3 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) XmNselectionLabelString XmCSelectionLabelString XmString dynamic CSG XmNtextAccelerators XmCTextAccelerators XtAccelerators default C XmNtextColumns XmCColumns short dynamic CSG XmNtextString XmCTextString XmString "" CSG XXXXmmmmNNNNaaaappppppppllllyyyyCCCCaaaallllllllbbbbaaaacccckkkk Specifies the list of callbacks called when the user activates the AAAAppppppppllllyyyybutton. The callback reason is XXXXmmmmCCCCRRRR____AAAAPPPPPPPPLLLLYYYY. XXXXmmmmNNNNaaaappppppppllllyyyyLLLLaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg Specifies the string label for the AAAAppppppppllllyyyy button. The default for this resource depends on the locale. In the C locale the default is AAAAppppppppllllyyyy. Now that some default localized label strings are provided through message catalogs for the children of composite widgets, the llllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg resources cannot be set on the child through default resource files. Instead, the resource provided at the parent level must be used. XXXXmmmmNNNNccccaaaannnncccceeeellllCCCCaaaallllllllbbbbaaaacccckkkk Specifies the list of callbacks called when the user activates the CCCCaaaannnncccceeeellll button. The callback reason is XXXXmmmmCCCCRRRR____CCCCAAAANNNNCCCCEEEELLLL. XXXXmmmmNNNNccccaaaannnncccceeeellllLLLLaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg Specifies the string label for the CCCCaaaannnncccceeeellll button. The default for this resource depends on the locale. In the C locale the default is CCCCaaaannnncccceeeellll. Now that some default localized label strings are provided through message catalogs for the children of composite widgets, the llllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg resources cannot be set on the child through default resource files. Instead, the resource provided at the parent level must be used. XXXXmmmmNNNNcccchhhhiiiillllddddPPPPllllaaaacccceeeemmmmeeeennnntttt Specifies the placement of the work area child. The possible values are XXXXmmmmPPPPLLLLAAAACCCCEEEE____AAAABBBBOOOOVVVVEEEE____SSSSEEEELLLLEEEECCCCTTTTIIIIOOOONNNN Places the work area child above the Text area XXXXmmmmPPPPLLLLAAAACCCCEEEE____BBBBEEEELLLLOOOOWWWW____SSSSEEEELLLLEEEECCCCTTTTIIIIOOOONNNN Places the work area child below the Text area XXXXmmmmPPPPLLLLAAAACCCCEEEE____TTTTOOOOPPPP Page 4 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) Places the work area child above the List area, and below a MenuBar, if one is present XXXXmmmmNNNNddddiiiiaaaallllooooggggTTTTyyyyppppeeee Determines the set of SelectionBox children widgets that are created and managed at initialization. The possible values are XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____PPPPRRRROOOOMMMMPPPPTTTT All standard children except the list and list label are created, and all except the AAAAppppppppllllyyyy button are managed XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____CCCCOOOOMMMMMMMMAAAANNNNDDDD Only the list, the selection label, and the text field are created and managed XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____SSSSEEEELLLLEEEECCCCTTTTIIIIOOOONNNN All standard children are created and managed XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____FFFFIIIILLLLEEEE____SSSSEEEELLLLEEEECCCCTTTTIIIIOOOONNNN All standard children are created and managed XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____WWWWOOOORRRRKKKK____AAAARRRREEEEAAAA All standard children are created, and all except the AAAAppppppppllllyyyy button are managed If the parent of the SelectionBox is a DialogShell, the default is XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____SSSSEEEELLLLEEEECCCCTTTTIIIIOOOONNNN; otherwise, the default is XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____WWWWOOOORRRRKKKK____AAAARRRREEEEAAAA. XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPrrrroooommmmppppttttDDDDiiiiaaaalllloooogggg and XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSeeeelllleeeeccccttttiiiioooonnnnDDDDiiiiaaaalllloooogggg set and append this resource to the creation _a_r_g_l_i_s_t supplied by the application. This resource cannot be modified after creation. XXXXmmmmNNNNhhhheeeellllppppLLLLaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg Specifies the string label for the HHHHeeeellllpppp button. The default for this resource depends on the locale. In the C locale the default is HHHHeeeellllpppp. Now that some default localized label strings are provided through message catalogs for the children of composite widgets, the llllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg resources cannot be set on the child through default resource files. Instead, the resource provided at the parent level must be used. XXXXmmmmNNNNlllliiiissssttttIIIItttteeeemmmmssss Specifies the items in the SelectionBox list. Page 5 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) XXXXttttGGGGeeeettttVVVVaaaalllluuuueeeessss for this resource returns the list items themselves, not a copy of the list items. The application must not free the returned items. XXXXmmmmNNNNlllliiiissssttttIIIItttteeeemmmmCCCCoooouuuunnnntttt Specifies the number of items in the SelectionBox list. The value must not be negative. XXXXmmmmNNNNlllliiiissssttttLLLLaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg Specifies the string label to appear above the SelectionBox list containing the selection items. The default for this resource depends on the locale. In the C locale the default is IIIItttteeeemmmmssssunless XXXXmmmmNNNNddddiiiiaaaallllooooggggTTTTyyyyppppeeee is XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____PPPPRRRROOOOMMMMPPPPTTTT; in this case the default is NULL. Now that some default localized label strings are provided through message catalogs for the children of composite widgets, the llllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg resources cannot be set on the child through default resource files. Instead, the resource provided at the parent level must be used. XXXXmmmmNNNNlllliiiissssttttVVVViiiissssiiiibbbblllleeeeIIIItttteeeemmmmCCCCoooouuuunnnntttt Specifies the number of items displayed in the SelectionBox list. The value must be greater than 0 (zero) unless XXXXmmmmNNNNddddiiiiaaaallllooooggggTTTTyyyyppppeeee is XXXXmmmmDDDDIIIIAAAALLLLOOOOGGGG____PPPPRRRROOOOMMMMPPPPTTTT; in this case, the value is always 0. The default is dynamic based on the height of the list. XXXXmmmmNNNNmmmmiiiinnnniiiimmmmiiiizzzzeeeeBBBBuuuuttttttttoooonnnnssss Sets the buttons to the width of the widest button and height of the tallest button if False. If True, button width and height are not modified. XXXXmmmmNNNNmmmmuuuussssttttMMMMaaaattttcccchhhh Specifies whether the selection widget should check if the user's selection in the text edit field has an exact match in the SelectionBox list when the _O_K button is activated. If the selection does not have an exact match, and XXXXmmmmNNNNmmmmuuuussssttttMMMMaaaattttcccchhhh is True, the XXXXmmmmNNNNnnnnooooMMMMaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkk callbacks are called. If the selection does have an exact match or if XXXXmmmmNNNNmmmmuuuussssttttMMMMaaaattttcccchhhh is False, XXXXmmmmNNNNooookkkkCCCCaaaallllllllbbbbaaaacccckkkk callbacks are called. XXXXmmmmNNNNnnnnooooMMMMaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkk Specifies the list of callbacks called when the user makes a selection from the text edit field that does not have an exact match with any of the items in the list box. The callback reason is XXXXmmmmCCCCRRRR____NNNNOOOO____MMMMAAAATTTTCCCCHHHH. Callbacks in this list are called Page 6 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) only if XXXXmmmmNNNNmmmmuuuussssttttMMMMaaaattttcccchhhhis true. XXXXmmmmNNNNooookkkkCCCCaaaallllllllbbbbaaaacccckkkk Specifies the list of callbacks called when the user activates the _O_K button. The callback reason is XXXXmmmmCCCCRRRR____OOOOKKKK. If the selection text does not match a list item, and XXXXmmmmNNNNmmmmuuuussssttttMMMMaaaattttcccchhhh is True, the XXXXmmmmNNNNnnnnooooMMMMaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkk callbacks are called instead. XXXXmmmmNNNNooookkkkLLLLaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg Specifies the string label for the _O_K button. The default for this resource depends on the locale. In the C locale the default is _O_K. Now that some default localized label strings are provided through message catalogs for the children of composite widgets, the llllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg resources cannot be set on the child through default resource files. Instead, the resource provided at the parent level must be used. XXXXmmmmNNNNsssseeeelllleeeeccccttttiiiioooonnnnLLLLaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg Specifies the string label for the selection text edit field. The default for this resource depends on the locale. In the C locale the default is SSSSeeeelllleeeeccccttttiiiioooonnnn. Now that some default localized label strings are provided through message catalogs for the children of composite widgets, the llllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg resources cannot be set on the child through default resource files. Instead, the resource provided at the parent level must be used. XXXXmmmmNNNNtttteeeexxxxttttAAAAcccccccceeeelllleeeerrrraaaattttoooorrrrssss Specifies translations added to the Text widget child of the SelectionBox. The default includes bindings for the up and down keys for auto selection of list items. This resource is ignored if XXXXmmmmNNNNaaaacccccccceeeelllleeeerrrraaaattttoooorrrrssss is initialized to a nondefault value. XXXXmmmmNNNNtttteeeexxxxttttCCCCoooolllluuuummmmnnnnssss Specifies the number of columns in the Text widget. The value must be greater than 0 (zero). XXXXmmmmNNNNtttteeeexxxxttttSSSSttttrrrriiiinnnngggg Specifies the text in the text edit selection field. IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss SelectionBox inherits behavior and resources from the Page 7 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) superclasses in the following tables. For a complete description of each resource, refer to the reference page for that superclass. XXXXmmmmBBBBuuuulllllllleeeettttiiiinnnnBBBBooooaaaarrrrdddd RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss XmNallowOverlap XmCAllowOverlap Boolean True CSG XmNautoUnmanage XmCAutoUnmanage Boolean True CG XmNbuttonFontList XmCButtonFontList XmFontList dynamic CSG XmNbuttonRenderTable XmCButtonRenderTable XmRenderTable dynamic CSG XmNcancelButton XmCWidget Widget dynamic SG XmNdefaultButton XmCWidget Widget dynamic SG XmNdefaultPosition XmCDefaultPosition Boolean True CSG XmNdialogStyle XmCDialogStyle unsigned char dynamic CSG XmNdialogTitle XmCDialogTitle XmString NULL CSG XmNfocusCallback XmCCallback XtCallbackList NULL C XmNlabelFontList XmCLabelFontList XmFontList dynamic CSG XmNlabelRenderTable XmCLabelRenderTable XmRenderTable dynamic CSG XmNmapCallback XmCCallback XtCallbackList NULL C XmNmarginHeight XmCMarginHeight Dimension 10 CSG XmNmarginWidth XmCMarginWidth Dimension 10 CSG XmNnoResize XmCNoResize Boolean False CSG XmNresizePolicy XmCResizePolicy unsigned char XmRESIZE_ANY CSG XmNshadowType XmCShadowType unsigned char XmSHADOW_OUT CSG XmNtextFontList XmCTextFontList XmFontList dynamic CSG XmNtextRenderTable XmCTextRenderTable XmRenderTable dynamic CSG XmNtextTranslations XmCTranslations XtTranslations NULL C XmNunmapCallback XmCCallback XtCallbackList NULL C XXXXmmmmMMMMaaaannnnaaaaggggeeeerrrr RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss XmNbottomShadowColor XmCBottomShadowColor Pixel dynamic CSG XmNbottomShadowPixmap XmCBottomShadowPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG XmNforeground XmCForeground Pixel dynamic CSG XmNhelpCallback XmCCallback XtCallbackList NULL C XmNhighlightColor XmCHighlightColor Pixel dynamic CSG XmNhighlightPixmap XmCHighlightPixmap Pixmap dynamic CSG XmNinitialFocus XmCInitialFocus Widget dynamic CSG XmNlayoutDirection XmCLayoutDirection XmDirection dynamic CG XmNnavigationType XmCNavigationType XmNavigationType XmTAB_GROUP CSG XmNpopupHandlerCallback XmCCallback XtCallbackList NULL C XmNshadowThickness XmCShadowThickness Dimension dynamic CSG XmNstringDirection XmCStringDirection XmStringDirection dynamic CG XmNtopShadowColor XmCTopShadowColor Pixel dynamic CSG XmNtopShadowPixmap XmCTopShadowPixmap Pixmap dynamic CSG XmNtraversalOn XmCTraversalOn Boolean True CSG XmNunitType XmCUnitType unsigned char dynamic CSG XmNuserData XmCUserData XtPointer NULL CSG CCCCoooommmmppppoooossssiiiitttteeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt Page 8 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss XmNchildren XmCReadOnly WidgetList NULL G XmNinsertPosition XmCInsertPosition XtOrderProc NULL CSG XmNnumChildren XmCReadOnly Cardinal 0 G CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss XmNaccelerators XmCAccelerators XtAccelerators dynamic N/A XmNancestorSensitive XmCSensitive Boolean dynamic G XmNbackground XmCBackground Pixel dynamic CSG XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG XmNborderWidth XmCBorderWidth Dimension 0 CSG XmNcolormap XmCColormap Colormap dynamic CG XmNdepth XmCDepth int dynamic CG XmNdestroyCallback XmCCallback XtCallbackList NULL C XmNheight XmCHeight Dimension dynamic CSG XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG XmNscreen XmCScreen Screen * dynamic CG XmNsensitive XmCSensitive Boolean True CSG XmNtranslations XmCTranslations XtTranslations dynamic CSG XmNwidth XmCWidth Dimension dynamic CSG XmNx XmCPosition Position 0 CSG XmNy XmCPosition Position 0 CSG CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn A pointer to the following structure is passed to each callback: typedef struct { int _r_e_a_s_o_n; XEvent * _e_v_e_n_t; XmString _v_a_l_u_e; int _l_e_n_g_t_h; } XmSelectionBoxCallbackStruct; _r_e_a_s_o_n Indicates why the callback was invoked _e_v_e_n_t Points to the _X_E_v_e_n_t that triggered the callback _v_a_l_u_e Indicates the XXXXmmmmSSSSttttrrrriiiinnnngggg value selected by the user from the SelectionBox list or entered into the SelectionBox text field _l_e_n_g_t_h Indicates the size in bytes of the XXXXmmmmSSSSttttrrrriiiinnnngggg value This member is obsolete and exists for compatibility with earlier releases. TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss PPPPaaaaggggeeee 9999 ((((pppprrrriiiinnnntttteeeedddd 11110000////3333////00002222)))) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx inherits translations from XXXXmmmmBBBBuuuulllllllleeeettttiiiinnnnBBBBooooaaaarrrrdddd. AAAAcccccccceeeelllleeeerrrraaaattttoooorrrrssss The XXXXmmmmNNNNtttteeeexxxxttttAAAAcccccccceeeelllleeeerrrraaaattttoooorrrrssss are added to the Text descendant of XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx. The default accelerators are described in the following list. The following key names are listed in the X standard key event translation table syntax. This format is the one used by Motif to specify the widget actions corresponding to a given key. A brief overview of the format is provided under VVVViiiirrrrttttuuuuaaaallllBBBBiiiinnnnddddiiiinnnnggggssss(3). For a complete description of the format, please refer to the X Toolkit Instrinsics Documentation. ::::<<<<KKKKeeeeyyyy>>>><<<<oooossssffffUUUUpppp>>>>: SelectionBoxUpOrDown(_P_r_e_v_i_o_u_s) ::::<<<<KKKKeeeeyyyy>>>><<<<oooossssffffDDDDoooowwwwnnnn>>>>: SelectionBoxUpOrDown(_N_e_x_t) ::::<<<<KKKKeeeeyyyy>>>><<<<oooossssffffBBBBeeeeggggiiiinnnnLLLLiiiinnnneeee>>>>: SelectionBoxUpOrDown(_F_i_r_s_t) ::::<<<<KKKKeeeeyyyy>>>><<<<oooossssffffEEEEnnnnddddLLLLiiiinnnneeee>>>>: SelectionBoxUpOrDown(_L_a_s_t) ::::<<<<KKKKeeeeyyyy>>>><<<<oooossssffffRRRReeeessssttttoooorrrreeee>>>>: SelectionBoxRestore() ssss cccc ~~~~mmmm ~~~~aaaa <<<<KKKKeeeeyyyy>>>>ssssppppaaaacccceeee: SelectionBoxRestore() AAAAccccttttiiiioooonnnn RRRRoooouuuuttttiiiinnnneeeessss The XmSelectionBox action routines are SelectionBoxUpOrDown(_P_r_e_v_i_o_u_s|_N_e_x_t|_F_i_r_s_t|_L_a_s_t): When called with an argument of PPPPrrrreeeevvvviiiioooouuuussss, or 0 (zero) for compatibility, selects the previous item in the list and replaces the text with that item. When called with an argument of NNNNeeeexxxxtttt, or 1 for compatibility, selects the next item in the list and replaces the text with that item. When called with an argument of FFFFiiiirrrrsssstttt, or 2 for compatibility, selects the first item in the list and replaces the text with that item. When called with an argument of LLLLaaaasssstttt, or 3 for compatibility, selects the last item in the list Page 10 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) and replaces the text with that item. SelectionBoxRestore(): Replaces the text value with the list selection. If no item in the list is selected, clears the text. AAAAddddddddiiiittttiiiioooonnnnaaaallll BBBBeeeehhhhaaaavvvviiiioooorrrr The SelectionBox widget has the following additional behavior: <<<<KKKKeeeeyyyy>>>><<<<oooossssffffCCCCaaaannnncccceeeellll>>>>: Calls the activate callbacks for the cancel button if it is sensitive. If no cancel button exists and the parent of the SelectionBox is a manager, passes the event to the parent. <<<<KKKKeeeeyyyy>>>><<<<oooossssffffAAAAccccttttiiiivvvvaaaatttteeee>>>>: Calls the activate callbacks for the button with the keyboard focus. If no button has the keyboard focus, calls the activate callbacks for the default button if it is sensitive. In a List widget or single-line Text widget, the List or Text action associated with <<<<KKKKeeeeyyyy>>>><<<<oooossssffffAAAAccccttttiiiivvvvaaaatttteeee>>>>is called before the SelectionBox actions associated with <<<<KKKKeeeeyyyy>>>><<<<oooossssffffAAAAccccttttiiiivvvvaaaatttteeee>>>>. In a multiline Text widget, any <<<<KKKKeeeeyyyy>>>><<<<oooossssffffAAAAccccttttiiiivvvvaaaatttteeee>>>>event except <<<<KKKKeeeeyyyy>>>><<<<oooossssffffEEEEnnnntttteeeerrrr>>>> calls the Text action associated with <<<<KKKKeeeeyyyy>>>><<<<oooossssffffAAAAccccttttiiiivvvvaaaatttteeee>>>>, then the SelectionBox actions associated with <<<<KKKKeeeeyyyy>>>><<<<oooossssffffAAAAccccttttiiiivvvvaaaatttteeee>>>>. If no button has the focus, no default button exists, and the parent of the SelectionBox is a manager, passes the event to the parent. <<<<OOOOKKKK BBBBuuuuttttttttoooonnnn AAAAccccttttiiiivvvvaaaatttteeeedddd>>>>: If XXXXmmmmNNNNmmmmuuuussssttttMMMMaaaattttcccchhhh is True and the text does not match an item in the file list, calls the XXXXmmmmNNNNnnnnooooMMMMaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkk callbacks with reason XXXXmmmmCCCCRRRR____NNNNOOOO____MMMMAAAATTTTCCCCHHHH. Otherwise, calls the XXXXmmmmNNNNooookkkkCCCCaaaallllllllbbbbaaaacccckkkk callbacks with reason XXXXmmmmCCCCRRRR____OOOOKKKK. <<<<AAAAppppppppllllyyyy BBBBuuuuttttttttoooonnnn AAAAccccttttiiiivvvvaaaatttteeeedddd>>>>: Calls the XXXXmmmmNNNNaaaappppppppllllyyyyCCCCaaaallllllllbbbbaaaacccckkkk callbacks with reason XXXXmmmmCCCCRRRR____AAAAPPPPPPPPLLLLYYYY. <<<<CCCCaaaannnncccceeeellll BBBBuuuuttttttttoooonnnn AAAAccccttttiiiivvvvaaaatttteeeedddd>>>>: Calls the XXXXmmmmNNNNccccaaaannnncccceeeellllCCCCaaaallllllllbbbbaaaacccckkkk callbacks with reason XXXXmmmmCCCCRRRR____CCCCAAAANNNNCCCCEEEELLLL. <<<<HHHHeeeellllpppp BBBBuuuuttttttttoooonnnn AAAAccccttttiiiivvvvaaaatttteeeedddd>>>>: Calls the XXXXmmmmNNNNhhhheeeellllppppCCCCaaaallllllllbbbbaaaacccckkkk callbacks with reason XXXXmmmmCCCCRRRR____HHHHEEEELLLLPPPP. Page 11 (printed 10/3/02) XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) <<<<MMMMaaaappppWWWWiiiinnnnddddoooowwww>>>>: Calls the callbacks for XXXXmmmmNNNNmmmmaaaappppCCCCaaaallllllllbbbbaaaacccckkkk if the SelectionBox is a child of a Dialog shell. <<<<UUUUnnnnmmmmaaaappppWWWWiiiinnnnddddoooowwww>>>>: Calls the callbacks for XXXXmmmmNNNNuuuunnnnmmmmaaaappppCCCCaaaallllllllbbbbaaaacccckkkk if the SelectionBox is the child of a DialogShell. VVVViiiirrrrttttuuuuaaaallll BBBBiiiinnnnddddiiiinnnnggggssss The bindings for virtual keys are vendor specific. For information about bindings for virtual buttons and keys, see VVVViiiirrrrttttuuuuaaaallllBBBBiiiinnnnddddiiiinnnnggggssss(3). RRRREEEELLLLAAAATTTTEEEEDDDD CCCCoooommmmppppoooossssiiiitttteeee(3), CCCCoooonnnnssssttttrrrraaaaiiiinnnntttt(3), CCCCoooorrrreeee(3), XXXXmmmmBBBBuuuulllllllleeeettttiiiinnnnBBBBooooaaaarrrrdddd(3), XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx(3), XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSeeeelllleeeeccccttttiiiioooonnnnDDDDiiiiaaaalllloooogggg(3), XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPrrrroooommmmppppttttDDDDiiiiaaaalllloooogggg(3), XXXXmmmmMMMMaaaannnnaaaaggggeeeerrrr(3), and XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxxGGGGeeeettttCCCChhhhiiiilllldddd(3). Page 12 (printed 10/3/02)